Text File | 1995-04-10 | 1019 b | 17 lines | [ttro/ttxt]
About Confidential…
"Confidential" is a printing extension which grabs the page shape as it's being spooled to disk (in GXSpoolPage) and adds a stamp diagonally across, and beneath, the other shapes on the page. The text for the message is set by the user via a panel in the print dialog.
This extension does not work well with applications which use TextEdit to print. Before TextEdit draws, it erases. To the QuickDraw GX translation routines, this erasure appears to be a deliberately painted white rectangle, so they add it to the page shape. Any background is overwritten by these white rectangles. For one workaround to this problem, see the printing extension "Backwash" elsewhere on this CD.
This extension shows:
• How to write an extension which installs a panel, handles panel events, and uses the way-cool ‘xdtl’ resources.
• How to write a simple override to modify a document's pages as they are being spooled to disk during printing.